//package com.itbooking.web.product;
//
//
//import com.itbooking.service.product.IProductService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/api/product")
//public class ProductController {
//
//    @Autowired
//    private IProductService productService;
//
//
////    @PostMapping("/upordown")
////    public int upDwonProducts(Long id,Integer status){
////        return productService.upDownProducts(id,status);
////    }
//
//    // 编写接口 一定要具有：独立性，隔离性，不讲究复用性
//    @PostMapping("/upprods")
//    public int upproducts(Long id){
//        return productService.upDownProducts(id,1);
//    }
//
//    @PostMapping("/downprods")
//    public int downprods(Long id){
//        return productService.upDownProducts(id,0);
//    }
//
//}
